@inject('tag', 'App\Models\Tag')
@php
    $tag_num   = intval($tag->count()/16);
    $tags   = $tag->skip(mt_rand(0,$tag_num))->take(12)->get();
@endphp
@if(isset($tags))
    <div class="layui-card">
        <div class="dir-site-rand-cloud layui-hide-xs">
            @foreach($tags as $v)
                <a href="{{ url('/tags/'.$v->name) }}/">{{ str_limit($v->name,'5') }}</a>
            @endforeach
        </div>
    </div>
@endif
<script src="https://xiongzhang.baidu.com/sdk/c.js?appid=1585865613834752"></script>
<div class="layui-card">
    <div class="layui-card-body blood-sponsor">
        <script>cambrian.render('body')</script>
    </div>
</div>
@inject('gotos', 'App\Models\GotoList')
@if($goto = $gotos->where('position',1)->first())
    <div class="layui-card banner-img">
        <div id="side-banner-site">
            <a href="{{ url('/goto/'.$goto->name) }}/" title="{{ $goto->title }}" rel="nofollow" target="_blank">
                <img src="{{ hostStr($goto->img) }}" alt="{{ $goto->title }}">
            </a>
        </div>
    </div>
@endif